package com.intelligentcar.springboot.controller;

import com.intelligentcar.springboot.service.DataPersonTestServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class DataPersonTestController {
    @Autowired
    private DataPersonTestServer dataPersonTestServerImpl;

    @RequestMapping("/addTopData")
    @ResponseBody
    public int addTopData(){
        return dataPersonTestServerImpl.addTopData();
    }
}
